from django.contrib import admin
from RouteManage.models import *


class StationAdmin(admin.ModelAdmin):
    list_display = ['name']


class RouteAdmin(admin.ModelAdmin):
    list_display = ['RouteID', 'ManagerID', 'State', 'RouteStopUseDate', 'RouteStopUseReason', ]


class RotaAdmin(admin.ModelAdmin):
    list_display = ['Route', 'Car', 'Driver', 'CarSendTime', 'Finished', ]


class ServiceAdmin(admin.ModelAdmin):
    list_display = ['Route', 'Car', 'Driver', 'CarSendTime', 'Record', ]


admin.site.register(Station, StationAdmin)
admin.site.register(Route, RouteAdmin)
admin.site.register(Rota, RotaAdmin)
admin.site.register(Service, ServiceAdmin)
